package com.example.administrator.android01app;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class Ch9Activity1 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ch91);
        Log.d(Ch9Activity1.class.toString(),"onCreate");
    }

    public Ch9Activity1() {
        super();
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.d(Ch9Activity1.class.toString(),"onStart");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.d(Ch9Activity1.class.toString(),"onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.d(Ch9Activity1.class.toString(),"onDestroy");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.d(Ch9Activity1.class.toString(),"onPause");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.d(Ch9Activity1.class.toString(),"onResume");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.d(Ch9Activity1.class.toString(),"onRestart");
    }

    public void btn1Click(View view){
        Intent intent=new Intent(this,Ch6Activity2.class);
        startActivity(intent);
    }

    public void btn2Click(View view){
        finish();
    }
}
